local ruilue = fk.CreateSkill{
  name = "swis__ruilue",
  tags = {"Rule"},
}

Fk:loadTranslationTable{
  ["swis__ruilue"] = "睿略",
  [":swis__ruilue"] = "法则技，所有角色均可以将一张扑克牌当与之花色、点数相同的另一张基本牌{或普通锦囊牌}使用。{}内容仅对你生效。",
}

ruilue:addAcquireEffect(function (self, player)
  local room = player.room

  local ruilue_map = {}
  for suit = Card.Black, Card.NoSuit do
    ruilue_map[suit] = {}
    for number = 1, 13 do
      ruilue_map[suit][number] = {}
    end
  end
  for _, id in ipairs(Fk:getAllCardIds()) do
    local card = Fk:getCardById(id)
    local suit, number = card.suit, card.number
    if number > 0 and number < 14 then
      table.insertIfNeed(ruilue_map[suit][number], card.name)
    end
  end
  room:setBanner("swis__ruilue_map", ruilue_map)

  table.forEach(room:getAlivePlayers(), function (p)
    room:handleAddLoseSkills(p, "swis__ruilue_viewas&", ruilue.name, false, true)
  end)
end)

ruilue:addEffect(fk.GameStart, {
  anim_type = "support",
  can_refresh = Util.FalseFunc,
})

return ruilue